﻿using System.Web.Mvc;

namespace SlamCms.Areas._admin
{
	public class AdminAreaRegistration : AreaRegistration
	{
		public override string AreaName
		{
			get
			{
				return "_admin";
			}
		}

		public override void RegisterArea(AreaRegistrationContext context)
		{
			context.MapRoute("_admin_CacheInvalidation", "_admin/Cache/Invalidate/{type}/{id}", new { controller = "Cache", action = "Invalidate", id = UrlParameter.Optional });
			context.MapRoute("_admin_ContentVerify", "_admin/Content/{action}/{contentItemId}", new { controller = "ContentManagement", action = "Index" });
			context.MapRoute("_admin_default", "_admin/{controller}/{action}/{id}", new { action = "Index", controller = "Dashboard", id = UrlParameter.Optional });
		}
	}
}